package com.zkthink.ceres.member.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.request.PageParams;
import com.zkthink.base.service.SuperServiceImpl;
import com.zkthink.ceres.member.dao.UserGiftInfoMapper;
import com.zkthink.ceres.member.entity.UserGiftInfo;
import com.zkthink.ceres.member.service.MemberService;
import com.zkthink.ceres.member.service.UserGiftInfoService;
import com.zkthink.ceres.member.vo.UserGiftInfoVO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class UserGiftInfoServiceImpl extends SuperServiceImpl<UserGiftInfoMapper, UserGiftInfo> implements UserGiftInfoService {
    @Resource
    MemberService memberService;

    @Override
    public IPage<UserGiftInfoVO> listPage(PageParams<UserGiftInfoVO> params) {
        IPage page = params.getPage();
       UserGiftInfoVO model = params.getModel();
        return baseMapper.selectLists(page,model);
    }
}
